package cc.mrbird.unit.domain;

import cc.mrbird.common.annotation.ExportConfig;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
@Table(name="unit_type")
public class UnitType implements Serializable {
    /**
     * 生活小区、购物商场、教育机构、餐饮饭店、商务写字楼、医疗机构、住宿酒店
     */
    private static final long serialVersionUID = 7780820231535871125L;
    @Id
    @GeneratedValue(generator = "JDBC")
    @Column(name = "unit_type_id")
    @ExportConfig(value = "单位类型ID")
    private Long unit_type_id;

    @Column(name = "unit_type_name")
    @ExportConfig(value = "单位类型名称")
    private String unit_type_name;

    public Long getUnit_type_id() {
        return unit_type_id;
    }

    public void setUnit_type_id(Long unit_type_id) {
        this.unit_type_id = unit_type_id;
    }

    public String getUnit_type_name() {
        return unit_type_name;
    }

    public void setUnit_type_name(String unit_type_name) {
        this.unit_type_name = unit_type_name;
    }

    @Override
    public String toString() {
        return "UnitType{" +
                "unit_type_id=" + unit_type_id +
                ", unit_type_name='" + unit_type_name + '\'' +
                '}';
    }
}
